app.directive("nav",function(){
	return {
		templateUrl:"component/nav.html",
		replace:true,
		restrict:"E",
		controller:function($scope,$http){
              $scope.slider=[]
              $http({
              	method:"GET",
              	url:"http://h5.yztctech.net/api/axf/apihome.php"

              }).success(function(res){
              	console.log(res)
              	$scope.menus=res.data.menu
              })
		},
        
	}
})